import request from "@/utils/request";

// 人员
export function operateList() {
  return request({
    url: "/rescue/operate/list",
    method: "get",
  });
}
// 救援舱状态
export function deviceList() {
  return request({
    url: "/rescue/device/status",
    method: "get",
  });
}
// 地址
export function addressList() {
  return request({
    url: "/rescue/address/list",
    method: "get",
  });
}
// 设备列表
export function deviceLists(address) {
  return request({
    url: "/rescue/device/list/" + address,
    method: "get",
  });
}
// 开关修改
export function updateDevice(data) {
  return request({
    url: "/rescue/device/status",
    method: "post",
    data,
  });
}
// 告警列表
export function warningList(address) {
  return request({
    url: "/rescue/warning/list/" + address,
    method: "get",
  });
}
// 图形数据
export function warningLists(deviceId) {
  return request({
    url: "/rescue/sensorDate/statistics/" + deviceId,
    method: "get",
  });
}
export function generatorData(deviceId, type){
  return request({
    url: "/rescue/sensorDate/generator/" + deviceId + "/" + type,
    method: "get",
  });
}
